package com.ls.thread.interrupt;

import java.io.IOException;

public class TicketInterrupt extends Thread{

	@Override
	public void run() {
		try {
			Thread.sleep(5000*60);
		} catch (InterruptedException e) {
			e.printStackTrace();
			System.out.println("等5fen钟");
		}
		System.out.println("run()运行完毕");
		
	}
	
	
	public static void main(String[] args) {
		Thread r=new TicketInterrupt();
		r.start();
		System.err.println("sleep5分钟，回车唤醒线程");
		try {
			System.in.read();
		} catch (IOException e) {
			e.printStackTrace();
		}
		r.interrupt();
		System.out.println("/////");
		
		
	}
}
